// daili 
const {createProxyMiddleware} = require('http-proxy-middleware');

module.exports = function(app) {
  app.use(
    createProxyMiddleware('/api', { 
      //目标地址
    target: 'http://localhost:3003' 
  }));

  app.use(
    createProxyMiddleware('/datalist', { 
      //目标地址
    target: 'http://localhost:3005' 
  }));
};